<?php

class Test_Abovo_Model_Tags extends Solar_Test {
    
    private $_tags;
    
    public function setup()
    {
        $this->_tags = Solar::factory('Abovo_Model_Tags');
        Solar::registry('sql')->query('DELETE from tags');
    }
    
    public function testFetchId()
    {
        $out = $this->_tags->insert(array('name' => 'fetch_id_tag'));
        $this->assertSame($this->_tags->fetchId('fetch_id_tag'), $out['id']);
    }
}
